<?php

CreateTable('scripts',
"CREATE TABLE `scripts` (
  `script` varchar(78) NOT NULL DEFAULT '',
  `pagesecurity` int(11) NOT NULL DEFAULT '1',
  `description` text NOT NULL,
  PRIMARY KEY (`script`)
)", $db);

NewScript('ABCRankingGroups.php', 15, $db);
NewScript('ABCRankingMethods.php', 15, $db);
NewScript('ABCRunAnalysis.php', 15, $db);
NewScript('AccountGroups.php', 10, $db);
NewScript('AccountSections.php', 10, $db);
NewScript('AddCustomerContacts.php', 3, $db);
NewScript('AddCustomerNotes.php', 3, $db);
NewScript('AddCustomerTypeNotes.php', 3, $db);
NewScript('AgedDebtors.php', 2, $db);
NewScript('AgedSuppliers.php', 2, $db);
NewScript('Areas.php', 3, $db);
NewScript('AuditTrail.php', 15, $db);
NewScript('BankAccounts.php', 10, $db);
NewScript('BankAccountUsers.php', 15, $db);
NewScript('BankMatching.php', 7, $db);
NewScript('BankReconciliation.php', 7, $db);
NewScript('BOMExtendedQty.php', 2, $db);
NewScript('BOMIndented.php', 2, $db);
NewScript('BOMIndentedReverse.php', 2, $db);
NewScript('BOMInquiry.php', 2, $db);
NewScript('BOMListing.php', 2, $db);
NewScript('BOMs.php', 9, $db);
NewScript('COGSGLPostings.php', 10, $db);
NewScript('CompanyPreferences.php', 10, $db);
NewScript('ConfirmDispatchControlled_Invoice.php', 11, $db);
NewScript('ConfirmDispatch_Invoice.php', 2, $db);
NewScript('ContractBOM.php', 6, $db);
NewScript('ContractCosting.php', 6, $db);
NewScript('ContractOtherReqts.php', 4, $db);
NewScript('Contracts.php', 6, $db);
NewScript('CopyBOM.php', 9, $db);
NewScript('CounterReturns.php', 5, $db);
NewScript('CounterSales.php', 1, $db);
NewScript('CreditItemsControlled.php', 3, $db);
NewScript('CreditStatus.php', 3, $db);
NewScript('Credit_Invoice.php', 3, $db);
NewScript('Currencies.php', 9, $db);
NewScript('CustEDISetup.php', 11, $db);
NewScript('CustLoginSetup.php', 15, $db);
NewScript('CustomerAllocations.php', 3, $db);
NewScript('CustomerBranches.php', 3, $db);
NewScript('CustomerInquiry.php', 1, $db);
NewScript('CustomerPurchases.php', 5, $db);
NewScript('CustomerReceipt.php', 3, $db);
NewScript('Customers.php', 3, $db);
NewScript('CustomerTransInquiry.php', 2, $db);
NewScript('CustomerTypes.php', 15, $db);
NewScript('CustWhereAlloc.php', 2, $db);
NewScript('DailyBankTransactions.php', 8, $db);
NewScript('DailySalesInquiry.php', 2, $db);
NewScript('Dashboard.php', 0, $db);
NewScript('DebtorsAtPeriodEnd.php', 2, $db);
NewScript('DeliveryDetails.php', 1, $db);
NewScript('Departments.php', 1, $db);
NewScript('DiscountCategories.php', 11, $db);
NewScript('DiscountMatrix.php', 11, $db);
NewScript('EDIMessageFormat.php', 10, $db);
NewScript('EDIProcessOrders.php', 11, $db);
NewScript('EDISendInvoices.php', 15, $db);
NewScript('EmailConfirmation.php', 2, $db);
NewScript('EmailCustTrans.php', 2, $db);
NewScript('ExchangeRateTrend.php', 2, $db);
NewScript('Factors.php', 5, $db);
NewScript('FixedAssetCategories.php', 11, $db);
NewScript('FixedAssetDepreciation.php', 10, $db);
NewScript('FixedAssetItems.php', 11, $db);
NewScript('FixedAssetLocations.php', 11, $db);
NewScript('FixedAssetRegister.php', 11, $db);
NewScript('FixedAssetTransfer.php', 11, $db);
NewScript('FormDesigner.php', 14, $db);
NewScript('FormMaker.php', 1, $db);
NewScript('FreightCosts.php', 11, $db);
NewScript('FTP_RadioBeacon.php', 2, $db);
NewScript('geocode.php', 3, $db);
NewScript('GeocodeSetup.php', 3, $db);
NewScript('geocode_genxml_customers.php', 3, $db);
NewScript('geocode_genxml_suppliers.php', 3, $db);
NewScript('geo_displaymap_customers.php', 3, $db);
NewScript('geo_displaymap_suppliers.php', 3, $db);
NewScript('GetStockImage.php', 1, $db);
NewScript('GLAccountCSV.php', 8, $db);
NewScript('GLAccountInquiry.php', 8, $db);
NewScript('GLAccountReport.php', 8, $db);
NewScript('GLAccounts.php', 10, $db);
NewScript('GLBalanceSheet.php', 8, $db);
NewScript('GLBudgets.php', 10, $db);
NewScript('GLCodesInquiry.php', 8, $db);
NewScript('GLJournal.php', 10, $db);
NewScript('GLJournalInquiry.php', 15, $db);
NewScript('GLProfit_Loss.php', 8, $db);
NewScript('GLTagProfit_Loss.php', 8, $db);
NewScript('GLTags.php', 10, $db);
NewScript('GLTransInquiry.php', 8, $db);
NewScript('GLTrialBalance.php', 8, $db);
NewScript('GLTrialBalance_csv.php', 8, $db);
NewScript('GoodsReceived.php', 11, $db);
NewScript('GoodsReceivedButNotInvoiced.php', 2, $db);
NewScript('GoodsReceivedControlled.php', 11, $db);
NewScript('ImportBankTrans.php', 11, $db);
NewScript('ImportBankTransAnalysis.php', 11, $db);
NewScript('ImportSalesPriceList.php', 15, $db);
NewScript('index.php', 1, $db);
NewScript('InternalStockCategoriesByRole.php', 15, $db);
NewScript('InternalStockRequest.php', 1, $db);
NewScript('InternalStockRequestAuthorisation.php', 1, $db);
NewScript('InternalStockRequestFulfill.php', 1, $db);
NewScript('InventoryPlanning.php', 2, $db);
NewScript('InventoryPlanningPrefSupplier.php', 2, $db);
NewScript('InventoryQuantities.php', 2, $db);
NewScript('InventoryValuation.php', 2, $db);
NewScript('JobCards.php', 15, $db);
NewScript('Labels.php', 15, $db);
NewScript('Locations.php', 11, $db);
NewScript('Logout.php', 1, $db);
NewScript('MailingGroupMaintenance.php', 15, $db);
NewScript('MailInventoryValuation.php', 1, $db);
NewScript('MailSalesReport_csv.php', 15, $db);
NewScript('MaintenanceReminders.php', 1, $db);
NewScript('MaintenanceTasks.php', 1, $db);
NewScript('MaintenanceUserSchedule.php', 1, $db);
NewScript('ManualContents.php', 1, $db);
NewScript('Manufacturers.php', 15, $db);
NewScript('MaterialsNotUsed.php', 4, $db);
NewScript('ModuleEditor.php', 15, $db);
NewScript('MonthlyBankTransactions.php', 8, $db);
NewScript('MRP.php', 9, $db);
NewScript('MRPCalendar.php', 9, $db);
NewScript('MRPCreateDemands.php', 9, $db);
NewScript('MRPDemands.php', 9, $db);
NewScript('MRPDemandTypes.php', 9, $db);
NewScript('MRPPlannedPurchaseOrders.php', 2, $db);
NewScript('MRPPlannedWorkOrders.php', 2, $db);
NewScript('MRPReport.php', 2, $db);
NewScript('MRPReschedules.php', 2, $db);
NewScript('MRPShortages.php', 2, $db);
NewScript('netincome.php', 10, $db);
NewScript('NoSalesItems.php', 2, $db);
NewScript('notyet.php', 10, $db);
NewScript('OffersReceived.php', 4, $db);
NewScript('OrderDetails.php', 2, $db);
NewScript('OutstandingGRNs.php', 2, $db);
NewScript('PageSecurity.php', 15, $db);
NewScript('PaymentAllocations.php', 5, $db);
NewScript('PaymentMethods.php', 15, $db);
NewScript('Payments.php', 5, $db);
NewScript('PaymentTerms.php', 10, $db);
NewScript('PcAssignCashToTab.php', 6, $db);
NewScript('PcAuthorizeExpenses.php', 6, $db);
NewScript('PcClaimExpensesFromTab.php', 6, $db);
NewScript('PcExpenses.php', 15, $db);
NewScript('PcExpensesTypeTab.php', 15, $db);
NewScript('PcReportTab.php', 6, $db);
NewScript('PcTabs.php', 15, $db);
NewScript('PcTypeTabs.php', 15, $db);
NewScript('PDFBankingSummary.php', 3, $db);
NewScript('PDFChequeListing.php', 3, $db);
NewScript('PDFCustomerList.php', 2, $db);
NewScript('PDFCustTransListing.php', 3, $db);
NewScript('PDFDeliveryDifferences.php', 3, $db);
NewScript('PDFDIFOT.php', 3, $db);
NewScript('PDFGLJournal.php', 15, $db);
NewScript('PDFGrn.php', 2, $db);
NewScript('PDFLowGP.php', 2, $db);
NewScript('PDFOrdersInvoiced.php', 3, $db);
NewScript('PDFOrderStatus.php', 3, $db);
NewScript('PDFPeriodStockTransListing.php', 3, $db);
NewScript('PDFPickingList.php', 2, $db);
NewScript('PDFPriceList.php', 2, $db);
NewScript('PDFPrintLabel.php', 10, $db);
NewScript('PDFQuotation.php', 2, $db);
NewScript('PDFQuotationPortrait.php', 2, $db);
NewScript('PDFReceipt.php', 2, $db);
NewScript('PDFRemittanceAdvice.php', 2, $db);
NewScript('PDFSellThroughSupportClaim.php', 9, $db);
NewScript('PDFStockCheckComparison.php', 2, $db);
NewScript('PDFStockLocTransfer.php', 1, $db);
NewScript('PDFStockNegatives.php', 1, $db);
NewScript('PDFStockTransfer.php', 2, $db);
NewScript('PDFSuppTransListing.php', 3, $db);
NewScript('PDFTopItems.php', 2, $db);
NewScript('PeriodsInquiry.php', 2, $db);
NewScript('PluginInstall.php', 15, $db);
NewScript('PluginUnInstall.php', 15, $db);
NewScript('PluginUpload.php', 15, $db);
NewScript('POClearBackOrders.php', 15, $db);
NewScript('POReport.php', 2, $db);
NewScript('PO_AuthorisationLevels.php', 15, $db);
NewScript('PO_AuthoriseMyOrders.php', 4, $db);
NewScript('PO_Header.php', 4, $db);
NewScript('PO_Items.php', 4, $db);
NewScript('PO_OrderDetails.php', 2, $db);
NewScript('PO_PDFPurchOrder.php', 2, $db);
NewScript('PO_SelectOSPurchOrder.php', 2, $db);
NewScript('PO_SelectPurchOrder.php', 2, $db);
NewScript('PriceMatrix.php', 11, $db);
NewScript('Prices.php', 9, $db);
NewScript('PricesBasedOnMarkUp.php', 11, $db);
NewScript('PricesByCost.php', 11, $db);
NewScript('Prices_Customer.php', 11, $db);
NewScript('PrintCheque.php', 5, $db);
NewScript('PrintCustOrder.php', 2, $db);
NewScript('PrintCustOrder_generic.php', 2, $db);
NewScript('PrintCustStatements.php', 2, $db);
NewScript('PrintCustTrans.php', 1, $db);
NewScript('PrintCustTransPortrait.php', 1, $db);
NewScript('PrintSalesOrder_generic.php', 2, $db);
NewScript('prlALD.php', 10, $db);
NewScript('prlBankDetails.php', 10, $db);
NewScript('prlBP.php', 10, $db);
NewScript('prlCreatePayroll.php', 10, $db);
NewScript('prlGP.php', 10, $db);
NewScript('prlnssf.php', 10, $db);
NewScript('prlOTFile.php', 10, $db);
NewScript('prlOthIncome.php', 10, $db);
NewScript('prlRegTimeEntry.php', 10, $db);
NewScript('prlRepBankTrans.php', 10, $db);
NewScript('prlRepCashTrans.php', 10, $db);
NewScript('prlRepPayrollRegister.php', 10, $db);
NewScript('prlRepPayrollRegYTD.php', 10, $db);
NewScript('prlRepPaySlip.php', 10, $db);
NewScript('prlRepTax.php', 10, $db);
NewScript('prlRepTaxYTD.php', 10, $db);
NewScript('prlSelectDeduction.php', 10, $db);
NewScript('prlSelectEmployee.php', 10, $db);
NewScript('prlSelectLoan.php', 10, $db);
NewScript('prlSelectOT.php', 10, $db);
NewScript('prlSelectOthIncome.php', 10, $db);
NewScript('prlSelectPayroll.php', 10, $db);
NewScript('prlSelectPayTrans.php', 10, $db);
NewScript('prlSelectRT.php', 10, $db);
NewScript('prlSelectTD.php', 10, $db);
NewScript('prlTardiness.php', 10, $db);
NewScript('prlUserSettings.php', 10, $db);
NewScript('PurchaseByPrefSupplier.php', 4, $db);
NewScript('PurchData.php', 4, $db);
NewScript('RecurringSalesOrders.php', 1, $db);
NewScript('RecurringSalesOrdersProcess.php', 1, $db);
NewScript('RegularPaymentsProcess.php', 5, $db);
NewScript('RegularPaymentsSetup.php', 5, $db);
NewScript('ReorderLevel.php', 2, $db);
NewScript('ReorderLevelLocation.php', 2, $db);
NewScript('ReportCreator.php', 13, $db);
NewScript('ReportMaker.php', 1, $db);
NewScript('reportwriter/admin/ReportCreator.php', 15, $db);
NewScript('ReprintGRN.php', 11, $db);
NewScript('ReverseGRN.php', 11, $db);
NewScript('SalesAnalReptCols.php', 2, $db);
NewScript('SalesAnalRepts.php', 2, $db);
NewScript('SalesAnalysis_UserDefined.php', 2, $db);
NewScript('SalesByTypePeriodInquiry.php', 2, $db);
NewScript('SalesCategories.php', 11, $db);
NewScript('SalesCategoryDescriptions.php', 15, $db);
NewScript('SalesCategoryPeriodInquiry.php', 2, $db);
NewScript('SalesGLPostings.php', 10, $db);
NewScript('SalesGraph.php', 6, $db);
NewScript('SalesInquiry.php', 2, $db);
NewScript('SalesPeople.php', 3, $db);
NewScript('SalesTopItemsInquiry.php', 2, $db);
NewScript('SalesTypes.php', 15, $db);
NewScript('scriptsAccess.php', 15, $db);
NewScript('SecurityTokens.php', 15, $db);
NewScript('SelectAsset.php', 2, $db);
NewScript('SelectCompletedOrder.php', 1, $db);
NewScript('SelectContract.php', 6, $db);
NewScript('SelectCreditItems.php', 3, $db);
NewScript('SelectCustomer.php', 2, $db);
NewScript('SelectGLAccount.php', 8, $db);
NewScript('SelectOrderItems.php', 1, $db);
NewScript('SelectProduct.php', 2, $db);
NewScript('SelectRecurringSalesOrder.php', 2, $db);
NewScript('SelectSalesOrder.php', 2, $db);
NewScript('SelectSupplier.php', 2, $db);
NewScript('SelectWorkOrder.php', 2, $db);
NewScript('SellThroughSupport.php', 9, $db);
NewScript('ShipmentCosting.php', 11, $db);
NewScript('Shipments.php', 11, $db);
NewScript('Shippers.php', 15, $db);
NewScript('ShiptsList.php', 2, $db);
NewScript('Shipt_Select.php', 11, $db);
NewScript('ShopParameters.php', 15, $db);
NewScript('SMTPServer.php', 15, $db);
NewScript('SpecialOrder.php', 4, $db);
NewScript('StockAdjustments.php', 11, $db);
NewScript('StockAdjustmentsControlled.php', 11, $db);
NewScript('StockCategories.php', 11, $db);
NewScript('StockCheck.php', 2, $db);
NewScript('StockClone.php', 15, $db);
NewScript('StockCostUpdate.php', 9, $db);
NewScript('StockCounts.php', 2, $db);
NewScript('StockDispatch.php', 2, $db);
NewScript('StockLocMovements.php', 2, $db);
NewScript('StockLocStatus.php', 2, $db);
NewScript('StockLocTransfer.php', 11, $db);
NewScript('StockLocTransferReceive.php', 11, $db);
NewScript('StockMovements.php', 2, $db);
NewScript('StockQties_csv.php', 5, $db);
NewScript('StockQuantityByDate.php', 2, $db);
NewScript('StockReorderLevel.php', 4, $db);
NewScript('Stocks.php', 11, $db);
NewScript('StockSerialItemResearch.php', 3, $db);
NewScript('StockSerialItems.php', 2, $db);
NewScript('StockStatus.php', 2, $db);
NewScript('StockTransferControlled.php', 11, $db);
NewScript('StockTransfers.php', 11, $db);
NewScript('StockUsage.php', 2, $db);
NewScript('StockUsageGraph.php', 2, $db);
NewScript('SuppContractChgs.php', 5, $db);
NewScript('SuppCreditGRNs.php', 5, $db);
NewScript('SuppFixedAssetChgs.php', 5, $db);
NewScript('SuppInvGRNs.php', 5, $db);
NewScript('SupplierAllocations.php', 5, $db);
NewScript('SupplierBalsAtPeriodEnd.php', 2, $db);
NewScript('SupplierContacts.php', 5, $db);
NewScript('SupplierCredit.php', 5, $db);
NewScript('SupplierInquiry.php', 2, $db);
NewScript('SupplierInvoice.php', 5, $db);
NewScript('SupplierPriceList.php', 4, $db);
NewScript('Suppliers.php', 5, $db);
NewScript('SupplierTenderCreate.php', 4, $db);
NewScript('SupplierTenders.php', 9, $db);
NewScript('SupplierTransInquiry.php', 2, $db);
NewScript('SupplierTypes.php', 4, $db);
NewScript('SuppLoginSetup.php', 15, $db);
NewScript('SuppPaymentRun.php', 5, $db);
NewScript('SuppPriceList.php', 2, $db);
NewScript('SuppShiptChgs.php', 5, $db);
NewScript('SuppTransGLAnalysis.php', 5, $db);
NewScript('SystemParameters.php', 15, $db);
NewScript('Tax.php', 2, $db);
NewScript('TaxAuthorities.php', 15, $db);
NewScript('TaxAuthorityRates.php', 11, $db);
NewScript('TaxCategories.php', 15, $db);
NewScript('TaxGroups.php', 15, $db);
NewScript('TaxProvinces.php', 15, $db);
NewScript('TopItems.php', 2, $db);
NewScript('UnitsOfMeasure.php', 15, $db);
NewScript('UpgradeDatabase.php', 15, $db);
NewScript('UploadPriceList.php', 15, $db);
NewScript('UserSettings.php', 0, $db);
NewScript('WhereUsedInquiry.php', 2, $db);
NewScript('WorkCentres.php', 9, $db);
NewScript('WorkOrderCosting.php', 11, $db);
NewScript('WorkOrderEntry.php', 10, $db);
NewScript('WorkOrderIssue.php', 11, $db);
NewScript('WorkOrderReceive.php', 11, $db);
NewScript('WorkOrderStatus.php', 11, $db);
NewScript('WOSerialNos.php', 10, $db);
NewScript('WWW_Access.php', 15, $db);
NewScript('WWW_Users.php', 15, $db);
NewScript('Z_BottomUpCosts.php', 15, $db);
NewScript('Z_ChangeBranchCode.php', 15, $db);
NewScript('Z_ChangeCustomerCode.php', 15, $db);
NewScript('Z_ChangeGLAccountCode.php', 15, $db);
NewScript('Z_ChangeLocationCode.php', 15, $db);
NewScript('Z_ChangeStockCategory.php', 15, $db);
NewScript('Z_ChangeStockCode.php', 15, $db);
NewScript('Z_ChangeSupplierCode.php', 15, $db);
NewScript('Z_CheckAllocationsFrom.php', 15, $db);
NewScript('Z_CheckAllocs.php', 2, $db);
NewScript('Z_CheckDebtorsControl.php', 15, $db);
NewScript('Z_CheckGLTransBalance.php', 15, $db);
NewScript('Z_CreateChartDetails.php', 9, $db);
NewScript('Z_CreateCompany.php', 15, $db);
NewScript('Z_CreateCompanyTemplateFile.php', 15, $db);
NewScript('Z_CurrencyDebtorsBalances.php', 15, $db);
NewScript('Z_CurrencySuppliersBalances.php', 15, $db);
NewScript('Z_DataExport.php', 15, $db);
NewScript('Z_DeleteCreditNote.php', 15, $db);
NewScript('Z_DeleteInvoice.php', 15, $db);
NewScript('Z_DeleteOldPrices.php', 15, $db);
NewScript('Z_DeleteSalesTransActions.php', 15, $db);
NewScript('Z_DescribeTable.php', 11, $db);
NewScript('Z_ImportChartOfAccounts.php', 11, $db);
NewScript('Z_ImportDebtors.php', 15, $db);
NewScript('Z_ImportFixedAssets.php', 15, $db);
NewScript('Z_ImportGLAccountGroups.php', 11, $db);
NewScript('Z_ImportGLAccountSections.php', 11, $db);
NewScript('Z_ImportGLTransactions.php', 15, $db);
NewScript('Z_ImportPartCodes.php', 11, $db);
NewScript('Z_ImportStocks.php', 15, $db);
NewScript('Z_ImportSuppliers.php', 15, $db);
NewScript('Z_index.php', 15, $db);
NewScript('Z_ItemsWithoutPicture.php', 15, $db);
NewScript('Z_MakeNewCompany.php', 15, $db);
NewScript('Z_MakeStockLocns.php', 15, $db);
NewScript('Z_poAddLanguage.php', 15, $db);
NewScript('Z_poAdmin.php', 15, $db);
NewScript('Z_poEditLangHeader.php', 15, $db);
NewScript('Z_poEditLangModule.php', 15, $db);
NewScript('Z_poEditLangRemaining.php', 15, $db);
NewScript('Z_poRebuildDefault.php', 15, $db);
NewScript('Z_PriceChanges.php', 15, $db);
NewScript('Z_ReApplyCostToSA.php', 15, $db);
NewScript('Z_RePostGLFromPeriod.php', 15, $db);
NewScript('Z_ReverseSuppPaymentRun.php', 15, $db);
NewScript('Z_SalesIntegrityCheck.php', 15, $db);
NewScript('Z_UpdateChartDetailsBFwd.php', 15, $db);
NewScript('Z_UpdateSalesAnalysisWithLatestCustomerData.php', 15, $db);
NewScript('Z_Upgrade3.10.php', 15, $db);
NewScript('Z_Upgrade_3.01-3.02.php', 15, $db);
NewScript('Z_Upgrade_3.04-3.05.php', 15, $db);
NewScript('Z_Upgrade_3.05-3.06.php', 15, $db);
NewScript('Z_Upgrade_3.07-3.08.php', 15, $db);
NewScript('Z_Upgrade_3.08-3.09.php', 15, $db);
NewScript('Z_Upgrade_3.09-3.10.php', 15, $db);
NewScript('Z_Upgrade_3.10-3.11.php', 15, $db);
NewScript('Z_Upgrade_3.11-4.00.php', 15, $db);
NewScript('Z_UploadForm.php', 15, $db);
NewScript('Z_UploadResult.php', 15, $db);

?>